package main

import (
	"fmt"
	"net"
)

func main() {
	listen, err := net.Listen("tcp", ":8080")
	if err != nil {
		fmt.Println("wrong ", err)
	}

	for {
		conn, _ := listen.Accept()

		go func(conn net.Conn) {
			byte_buf := make([]byte, 1024)
			conn.Read(byte_buf)
			fmt.Println(string(byte_buf))
		}(conn)
	}

}
